#ifndef QSETPADDINGDIALOG_H
#define QSETPADDINGDIALOG_H

#include <QDialog>

#include "../../include/qcommonstruct.h"

namespace Ui {
    class QSetPaddingDialog;
}

class QSetPaddingDialog : public QDialog
{
    Q_OBJECT

public:
    explicit QSetPaddingDialog(QWidget *parent = 0);
    ~QSetPaddingDialog();

    void    setValue(const tagPaddingInfo &padding);
    tagPaddingInfo   value();

    int     exec();
private slots:
    void on_spinBox_valueChanged(int arg1);

    void on_spinBox_2_valueChanged(int arg1);

    void on_spinBox_3_valueChanged(int arg1);

    void on_spinBox_4_valueChanged(int arg1);

    void on_pushButton_2_clicked();

    void on_pushButton_clicked();

protected:
    void    updateValue();
private:
    Ui::QSetPaddingDialog *ui;

    int     m_ret;
};

#endif // QSETPADDINGDIALOG_H
